package Dyl;

public  class Person implements Animal,Biology,Man{
    private String name;
    private String Myname;
    public Person(String name,String Myname){
        this.name=name;
        this.Myname=Myname;
    }


    @Override
    public void sleep() {
        System.out.println(name+"正在睡觉");


    }

    @Override
    public void eat() {
        System.out.println(name+"正在吃东西");

    }

    @Override
    public void breath() {
        System.out.println(name+"正在呼吸新鲜空气");

    }

    @Override
    public void think() {
        System.out.println(Myname+"正在思考java的难题~~~~~");

    }

    @Override
    public void study() {
        System.out.println(Myname+"正在学习java的知识~~~~~");

    }
    public void accomplish(){
        breath();
        sleep();
        eat();
        think();
        study();
    }
}


